//
//  Const.h
//  DialectShare
//
//  Created by timmy zhong on 3/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    ServerStatusError = 0,
    ServerStatusSuccess,
    ServerStatusParamError,
    ServerStatusAccountExist,
    ServerStatusNoLogin,
    ServerStatusAlreadyFollow,
    ServerStatusEmpty,
    ServerStatusPermissions,
    ServerStatusNotFollowd
} ServerStatus;

#define DialectTableName        @"dialect"
#define DialectId               @"id"
#define DialectUid              @"uid"
#define DialectLongitude        @"longitude"
#define DialectLatitude         @"latitude"
#define DialectAddress          @"address"
#define DialectUri              @"uri"
#define DialectDateline         @"dateline"
#define DialectGood             @"good"
#define DialectBad              @"bad"
#define DialectListen           @"listen"
#define DialectYuXiId           @"yuxiId"
#define DialectYuXi             @"yuxi"
#define DialectSentenceId       @"sentenceId"
#define DialectDistance         @"distance"
#define DialectContent          @"content"


//YUXI
#define YuXiTableName           @"yuxi"
#define YuXiId                  @"id"
#define YuXiName                @"name"
#define YuXiListen              @"listen"

//User
#define UserTableName           @"user"
#define UserUid                 @"uid"
#define UserAccount             @"account"
#define UserPassword            @"password"
#define UserName                @"name"
#define UserAvatar              @"avatar"
#define UserAuth                @"auth"
#define UserDialectCount        @"dialect_count"
#define UserFollowCount         @"follow_count"
#define UserFanCount            @"fan_count"
#define UserCommentCount        @"comment_count"
#define UserMoto                @"moto"
#define UserIsFollow            @"is_follow"

//Comment
#define CommentTableName        @"comment"
#define CommentDiaelctId        @"dialect_id"
#define CommentId               @"id"
#define CommentContent          @"content"
#define CommentDateline         @"dateline"
#define CommentUid              @"uid"


//Sentence
#define SentenceTable           @"sentence"
#define SentenceId              @"sentence_id"
#define SentenceUid             @"uid"
#define SentenceCount           @"count"
#define SentenceContent         @"content"

















